from django.core.management.base import BaseCommand
from system.models import DeployRecord, DeployRequest


class Command(BaseCommand):
    help = '系统部署记录'

    def handle(self, *args, **options):
        DeployRecord.objects.create()
        DeployRequest.objects.filter(done=False).update(done=True)
        print('记录完成')
